<html>
<body>
<div id="return"></div>
<button onclick="next_page()">点击获取下一页</button>
<script src="/static/utils.js"></script>
<script src="/static/jquery.js"></script>
<script>
    window.page = 1
    $.ajax({
        url: "/sec2/lesson1_2_data_api?page=1",
        success: function(data){
                $("#return").text(JSON.stringify(data))
            }
        })

</script>
<script>
    function next_page(){
    window.page ++;
    $.ajax({
        url: "/sec2/lesson1_2_data_api?page=" + window.page,
        success: function(data){
                $("#return").text(JSON.stringify(data))
            }
        })
        }
</script>
</body>
</html>